cc.Class({
    extends: cc.Component,

    properties: {
        img_title : {
            default : null,
            type : cc.Node
        },
        bg : {
            default : null,
            type : cc.Node
        },
        rate_txt : {
            default : null,
            type : cc.Label
        },
    },
    onLoad () {
        var height = cc.view.getVisibleSize().height;
        this.node.height = height;
        this.bg.height = height;
    },
    show(args){
        this.callFun = args.callFun;
        this.rate_txt.string = args.rate_txt;
    },
    shipinClick(){
        cc.vv.audioMgr.playSFX("ui_button");
        if(this.callFun){
            this.callFun();
        }
        this.node.destroy();
    },
    closeClick(){
        cc.vv.audioMgr.playSFX("ui_button");
        this.node.destroy();
    },
});
